package com.tz.farmer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smartPark.msframe.result.ResultEx;
import com.tz.farmer.model.FarmerNutrition;
import com.tz.farmer.so.FarmerNutritionSo;

public interface WebFarmerNutritionService extends IService<FarmerNutrition> {

    /**
     * 条件查询
     * @param so
     * @return
     */
    ResultEx getNutritionListByConditions(FarmerNutritionSo so);

    /**
     * 添加修改软删除
     * @param so
     * @return
     */
    ResultEx updateAndAddNutrition(FarmerNutritionSo so ,String token);

    /**
     * 单查
     * @param so
     * @return
     */
    ResultEx getOneDetails(FarmerNutritionSo so);

    /**
     * 硬删除一条记录
     * @param so
     * @return
     */
    ResultEx deleteOne(FarmerNutritionSo so);
}
